With the C1Maps control, you can specify your map's zoom level. If you set particular map points, you may want the map to be shown zoomed in on those points. With the MaxZoomValue and MinZoomValue properties, you can set the zoom level on load, and you can limit how closely users can zoom in on the map.
It's easy to set these two properties using XAML markup or code:
In XAML
Edit your <c1:C1Maps> tag so it resembles the following:
XAML |
Copy Code
|
---|---|
<C1:C1Maps x:Name="maps" MinZoomValue="3" MaxZoomValue="15"/> |
When you run your application, it will appear with a zoom level of "3".
In Code
Add the following code to your InitializeComponent() method:
Visual Basic |
Copy Code
|
---|---|
maps.MaxZoom = 15 maps.MinZoom = 5 |
C# |
Copy Code
|
---|---|
maps.MaxZoom = 15; maps.MinZoom = 5; |